import java.util.Arrays;

public class Text {
    public static void main(String[] args) {
        int[] array={1,2,3,4,5,6,7,8};
        int ret=Arrays.binarySearch(array,3);
        System.out.println("下标是："+ret);
    }
}
